<div class="panel panel-default m-n">
    <div class="panel-heading">升级会员</div>
    <div class="panel-body">
        <form name="memberClientForm" class="bs-example form-horizontal ng-pristine ng-valid"  ng-submit="confirm()">
            <div class="form-group padder-md" ng-if="clientUpdate.cardNumber==null">
                <label>会员编号</label>
                <input type="text" class="form-control" placeholder="请输入会员编号" ng-pattern="/^\d{6}$/" maxlength="6" name="number" ng-model="memberClient.cardNumber" required>
                <div class="form-text" ng-if="memberClientForm.number.$touched">
                    <span class="text-danger" ng-if="memberClientForm.number.$error.required">会员编号是必填的</span>
                    <span class="text-danger" ng-if="memberClientForm.number.$error.pattern">请输入6位数字的会员编号</span>
                </div>
            </div>
            <div class="form-group padder-md">
                <label>会员卡</label>
                <select class="form-control" name="member" ng-model="memberClient.memberCardId" required>
                    <option value="">请选择会员卡</option>
                    <option ng-repeat="m in memberCardVO" value="{{m.id}}" >{{m.cardName}}</option>
                </select>
                <div class="form-text" ng-if="memberClientForm.member.$touched">
                    <span class="text-danger" ng-if="memberClientForm.member.$error.required">(请选择赠送的会员卡)</span>
                </div>
            </div>

            <div class="form-group">
                <div class="col-lg-12 text-right padder-md">
                    <button type="submit" class="btn btn-sm btn-info" ng-disabled="memberClientForm.$invalid">保存</button>
                    <div class="btn btn-sm btn-default" ng-click="cancel()">取消</div>
                </div>
            </div>
        </form>
    </div>
</div>

